package main

import (
	"fmt"
)

type human struct {
	sex int
	age int
}
type person struct {
	human
	name    string
	age     string
	contact struct {
		phone, city string
	}
}

type person1 struct {
	human
	string
	int
}

func main() {
	a := person{name: "hw", age: "12", human: human{sex: 1, age: 2}}
	a.contact.city = "sh"
	a.contact.phone = "11"

	//b := person1{"cy", 22}
	//b = a
	fmt.Println(a)
	//fmt.Println(b)
}
